package dfbz.demo02_方法重载;
public class Test01 {
    public static void main(String[] args) {
        byte a=1;
        System.out.println(getSum(a,a));
        int b=1;
        System.out.println(getSum(b,b));
        long c=1;
        System.out.println(getSum(c,c));
        short d=1;
        System.out.println(getSum(d,d));
        double e=1.1;
        System.out.println(getSum(e,e));
        float f=1.22f;
        System.out.println(getSum(f,f));
        char g='a';
        System.out.println(getSum(g,g));
    }
    public static int getSum(byte a,byte b){
       return a+b;
    }
    public static int getSum(int a,int b){
        return a+b;
    }
    public static long getSum(long a,long b){
        return a+b;
    }
    public static int getSum(short a,short b){
        return a+b;
    }
    public static double getSum(double a,double b){
        return a+b;
    }
    public static float getSum(float a,float b){
        return a+b;
    }
    public static int getSum(char a,char b){
        return a+b;
    }
}
